package po.emp;
/**
 * 职称类
 */
public class Title {
	private int titleId;
	private String titleName;
	private boolean deleteFlag;  //删除标记，false没被删除
	public Title() {
		super();
	}
	public Title(int titleId, String titleName, boolean deleteFlag) {
		super();
		this.titleId = titleId;
		this.titleName = titleName;
		this.deleteFlag = deleteFlag;
	}
	public int getTitleId() {
		return titleId;
	}
	public void setTitleId(int titleId) {
		this.titleId = titleId;
	}
	public String getTitleName() {
		return titleName;
	}
	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Override
	public String toString() {
		return "Title [titleId=" + titleId + ", titleName=" + titleName + ", deleteFlag=" + deleteFlag + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + titleId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Title other = (Title) obj;
		if (titleId != other.titleId)
			return false;
		return true;
	}
	
	
}
